const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('myAPI', {
    saveFile: (content) => {
        ipcRenderer.send('create-file', content);
    },
});